const _import = require("./_import_" + process.env.ROUT_MODE);
let dataCenter=        {
    path: "data-center",
    name: "数据中心",
    component: {
        render (c) {
            return c("router-view");
        }
    },
    children: [{
        path: "statistical-reportforms",
        name: "统计报表",
        redirect: "/data-center/statistical-reportforms",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [{
            path: "stock-statistics",
            name: "库存统计表",
            component: _import(
                "data-center/statistical-reportforms/stock-statistics"
            )
        },
        {
            path: "outsourcing-statistics",
            name: "出库统计表",
            component: _import(
                "data-center/statistical-reportforms/outsourcing-statistics"
            )
        },
        {
            path: 'warehousing-statistics',
            name: '入库统计表',
            component: _import('data-center/statistical-reportforms/warehousing-statistics'),
        },
        {
            path: "inventory-statistics",
            name: "盘点统计表",
            component: _import(
                "data-center/statistical-reportforms/inventory-statistics"
            ),
        },
        {
            path: "sales-statistics",
            name: "销售明细统计表",
            component: _import(
                "data-center/statistical-reportforms/sales-statistics"
            ),
        },
        {
            path: "salesReturn-statistics",
            name: "销售退货明细统计表",
            component: _import(
                "data-center/statistical-reportforms/salesReturn-statistics"
            ),
        },
        {
            path: "procurement-statistics",
            name: "采购明细统计表",
            component: _import(
                "data-center/statistical-reportforms/procurement-statistics"
            ),
        },
        {
            path: "purchasingReturn-statistics",
            name: "采购退货明细统计表",
            component: _import(
                "data-center/statistical-reportforms/purchasingReturn-statistics"
            ),
        },
        {
            path: "chain-salesStatistics",
            name: "连锁销售统计表",
            component: _import(
                "data-center/statistical-reportforms/chain-salesStatistics"
            ),
        },
        {
            path: "chain-salesReturnStatistics",
            name: "连锁销售退货明细统计表",
            component: _import(
                "data-center/statistical-reportforms/chain-salesReturnStatistics"
            ),
        },

        ]
    },
    {
        path: "company-statement",
        name: "公司营业报表",
        component: _import(
            "data-center/company-statement"
        ),

    },
    {
        path: "store-salesManagement",
        name: "门店pos销售管理",
        redirect: "/data-center/store-salesManagement",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [{
            path: "store-salesBill",
            name: "POS账单商品明细",
            component: _import(
                "data-center/store-salesManagement/store-salesBill"
            ),
            children: [{
                path: "store-salesDetail",
                name: "POS账单商品明细详情",
                component: _import(
                    "data-center/store-salesManagement/store-salesBill/store-salesDetail"
                ),
                meta: { isSub: true }
            }]
        },]
    },
    {
        path: "subcard-serviceStatistics",
        name: "次卡服务统计",
        component: _import(
            "data-center/subcard-serviceStatistics"
        ),

    },
    {
        path: "store-sales-summary",
        name: "门店销售汇总表",
        component: _import(
            "data-center/store-sales-summary"
        ),
    },
    {
        path: "commodity-turnover-rate",
        name: "库存覆盖率",
        component: _import(
            "data-center/commodity-turnover-rate"
        ),
    },
    {
        path: "gross-profit-statistics",
        name: "商品毛利统计",
        component: _import(
            "data-center/gross-profit-statistics"
        ),
    },
    {
        path: "trading-flow",
        name: "储值交易流水",
        component: _import(
            "data-center/trading-flow"
        ),
        children: [{
            path: "tradingFlow-info",
            name: "查看  ",
            component: _import(
                "data-center/trading-flow/tradingFlow-info"
            ),
            meta: { isSub: true }
        }]
    },
    {
        path: "deposit-margin",
        name: "储值保证金明细",
        component: _import(
            "data-center/deposit-margin"
        ),
        children: [{
            path: "depositMargin-info",
            name: "明细",
            component: _import(
                "data-center/deposit-margin/depositMargin-info"
            ),
            meta: { isSub: true }
        }]
    },
    {
        path: "recharge-details",
        name: "储值充值明细",
        component: _import(
            "data-center/recharge-details"
        )
    },
    {
        path: "employee-commission",
        name: "门店员工提成报表",
        component: _import(
            "data-center/employee-commission"
        ),
        children: [{
            path: "employeeCommission-details",
            name: "提成明细",
            component: _import(
                "data-center/employee-commission/employeeCommission-details"
            ),
            meta: { isSub: true }
        }]
    },
    {
        path: "store-salesOrders",
        name: "门店销售订单",
        component: _import(
            "data-center/store-salesOrders"
        ),
        children: [{
            path: "store-orderDetail",
            name: "售卖详情",
            component: _import(
                "data-center/store-salesOrders/store-orderDetail"
            ),
            meta: { isSub: true }
        }, {
            path: "store-returnDetail",
            name: "退货详情",
            component: _import(
                "data-center/store-salesOrders/store-returnDetail"
            ),
            meta: { isSub: true }
        }]
    },
    ]
}
export default  dataCenter